<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查询商品列表</title>
</head>
<body>
<form action="${pageContext.request.contextPath }/lianhe/ht" method="post">
    <table width="100%" border=1>
        <tr>
            <td>
               后台商品管理
            </td>
            <td>
                <button style="background: bisque;color: red;border-radius: 4px;">
                    <a href="${pageContext.request.contextPath }/lianhe/jia?lid=${lianhe.lid}" style="text-decoration: none;">
                        添加
                    </a>
                </button>

            </td>

        </tr>
    </table>
    <table width="100%" border=1>
        <tr>
            <td>lid</td>
            <td>名称</td>
            <td>图片</td>
            <td>价格</td>
            <td>typeid</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${lianhes}" var="lianhe">
            <tr>
                <td>
                    <input type="checkbox" name="lid" value="${lianhe.lid}">
                </td>
                <td>${lianhe.lname }</td>


                <td>${lianhe.limg}</td>
                <td>${lianhe.lprice}</td>
                <td>${lianhe.typeid}</td>
                <td>
                   <button> <a href="${pageContext.request.contextPath }/lianhe/findById?lid=${lianhe.lid}">修改</a></button>
                    <button><a href="${pageContext.request.contextPath }/lianhe/delcontent?lid=${lianhe.lid}">删除</a></button>
                </td>

            </tr>
        </c:forEach>

    </table>
</form>
</body>

</html>